<template>
  <div>
    <div class="top flex between">
      <div class="top-left flex align-center">
        <div class="app-name">本地宝</div>
        <div class="city">苏州 <span class="el-icon-caret-bottom"></span></div>
      </div>
      <div class="top-right flex align-center">
        <div class="support">
          <span>技术支持：海豹1111111111 &nbsp; </span>
          <span>56：12312314231</span>
        </div>
        <span>上午好！ lanmao</span>
        <div class="exit" @click="goLogin">
          <span class="el-icon-switch-button"></span> 退出
        </div>
        <div class="go-home">首页</div>
      </div>
    </div>
    <main-nav></main-nav>
    <router-view />
  </div>
</template>

<script>
import mainNav from '../../components/mainNav.vue'
export default {
  name: 'Home',
  components: {
    mainNav
  },
  methods: {
    goLogin () {
      this.$router.push({ name: 'Login' })
    }
  }
}
</script>

<style scoped>
@import "../../../common.css";
.top {
  padding: 2px 10px;
  background-color: rgb(52, 56, 60);
  color: rgb(238, 238, 238);
}

.top-left .app-name {
  margin: 0 100px 0 0;
  font-size: 24px;
  color: rgb(55, 193, 195);
}
.top-left .city {
  font-size: 18px;
}

.top-right .support {
  margin: 0 10px 0 0;
  color: rgb(92, 184, 92);
  font-size: 14px;
}
.exit {
  margin: 0 40px 0 15px;
}
</style>
